package com.baishancloud.log.common.entity

import scala.beans.BeanProperty

/**
 * 维表（cache组）数据对象
 *
 * @param hostId         服务端hostname地址的id
 * @param hostIp         服务端ip地址
 * @param hostname       服务端主机名
 * @param countryId      服务端hostname对应国家id
 * @param cacheGroupId   服务端hostname对应cache组id
 * @param cacheGroupName cache组名称，中文
 * @param cacheGroupCode cache组code，英文
 * @author ziqiang.wang
 * @date 2022/1/29 11:07
 */
case class ServerCacheGroupEntity(
                                   @BeanProperty var hostId: Int,
                                   @BeanProperty var hostIp: String,
                                   @BeanProperty var hostname: String,
                                   @BeanProperty var countryId: Int,
                                   @BeanProperty var cacheGroupId: Int,
                                   @BeanProperty var cacheGroupName: String,
                                   @BeanProperty var cacheGroupCode: String
                                 ) extends Serializable

object ServerCacheGroupEntity extends Serializable {
  def apply(): ServerCacheGroupEntity = new ServerCacheGroupEntity(0, "", "", 0, 0, "", "")

  /**
   * cache组信息的默认对象
   */
  val DEFAULT: ServerCacheGroupEntity = new ServerCacheGroupEntity(0, "", "", 0, 0, "", "")
}